package com.order.fegin;

import com.goods.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "stock",fallback = StockServiceException.class)
@Component
public interface StockService {
     ///
    @PostMapping("/stock/reduceStock/{shopId}")
    Result reduceStock(@PathVariable("shopId") Integer shopId);

}
